package com.qiuhui.springbootstartertest.Controller;

import com.qiuhui.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: HelloController
 * @Description: TODO
 * @author: tian
 * @date: 2021/4/1  6:41 下午
 */
@RestController
public class HelloController {
    @Autowired
    HelloService helloService;

    @RequestMapping("/spring")
    public String hello(){
        return helloService.sayHello(" spring-boot ");
    }
}
